package com.poisonh.unifiedauth.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * 认证管理 viewpager adapter
 * Created by PoisonH on 2016/7/4.
 */
public class CmVpAdapter extends FragmentPagerAdapter
{
    private List<Fragment> mListFragment;

    public CmVpAdapter(FragmentManager fm, List<Fragment> list)
    {
        super(fm);
        this.mListFragment = list;
    }

    @Override
    public Fragment getItem(int position)
    {
        return mListFragment.get(position);
    }

    @Override
    public int getCount()
    {
        return mListFragment.size();
    }
}
